
package framework.model;

public class Organization extends Customer implements IOrganization {

    private int noOfEmployees;
    
    public Organization(String name, String email, Address address, String noOfEmployee) {
        super(name, email, address);
        this.noOfEmployees = Integer.parseInt(noOfEmployee);
    }

    @Override
    public String getType() {
        return Constant.CTYPE_COMPANY;
    }
    
    @Override
    public String getField(String key) {
        if (Constant.A_NO_OF_EMPLOYEE.equals(key)) {
            return "" + noOfEmployees;
        } else {
            return super.getField(key);
        }
    }

}
